<script setup>
import { useAttrs } from 'vue'
// this.$attrs
const attrs = useAttrs()
console.log(attrs);

</script>
<template>

        <h1 :="$attrs">子组件</h1>
        <slot></slot>
        <h1>子组件</h1>
  
</template>